package com.niodata.dp.monitor.base;

/**
 * Created by jixin on 17-6-14.
 */
public class DpMonitorException extends RuntimeException {

  private int code;
  private String message;

  public DpMonitorException(int code, String message, Throwable cause) {
    super(message, cause);
    this.code = code;
    this.message = message;
  }

  public DpMonitorException(int code, String message) {
    super(message, null);
    this.code = code;
    this.message = message;
  }

  public int getCode() {
    return code;
  }

  public String getMessage() {
    return message;
  }

}